<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>我的</title>
<link rel="stylesheet" type="text/css" href="/style/wei/css/base.css"/>
<link rel="stylesheet" type="text/css" href="/style/wei/css/swiper.min.css"/>
<link rel="stylesheet" type="text/css" href="/style/wei/css/xshop.css?ver=20190812" />
<link type="text/css" rel="stylesheet" href="/style/css/sweet-alert.css">
<link rel="stylesheet" type="text/css" href="/style/wei/mui/css/mui.min.css"/>

<script src="/style/wei/js/jquery-1.12.0.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="/style/js/sweet-alert.min.js"></script>
<script src="/style/wei/mui/js/mui.min.js"></script>
<script src="/style/wei/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/style/wei/js/xShop.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="/style/wei/js/jquery.cookies.js"></script>



<style> 
a{color: #333; font-size: .3rem;}
.foot-menu ul{ height: 1rem;line-height: 1rem; }
#nav { 
    width:80%; 
    height: 40px; 
    position:fixed;
    left:10%;
    top:.05rem;
    background-color:#0066FF ;	
   text-align: center;
   border-radius: 50px 50px 50px 50px;
	z-index: 999999;
	display: none;
}
#nav span{
	font-size:14px;
	color:#fff;
}
#nav img{
	display: block;
	width:40px;
	height:40x;
	border-radius:100%;
	overflow: hidden;
}
.user-list{    width: 6.98rem;
    float: right;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid#F0F0F0;}
.user-img{ width: 0.16rem;height: 0.26rem;float: right;margin-right: 0.34rem; margin-top: 0.10rem; }
</style>  
</head>
<body>
<div class="outwrap">
    <!--top-->
    
    <div class="meinner-adr-add meinner-adr-bot">
        <div class="me-top">

            <div class="me-top-inner">
                <div class="me-set">
               
                </div>

                <div id="user_info">
                    <div class="me-top-touxiang">
                        <a href="javascript:;">
                            <?php if($this->member['wechat_headimgurl']!=""){ ?>

                            <img src="<?=$this->member['wechat_headimgurl']?>"/>
                            <?php } else{ ?>
                            <img src="/style/wei/images/img2.png" />
                            <?php } ?>
                        </a>
                   </div>
                   <h3 class="me-top-name" id="dd"><?=$this->member['realname']?></h3>
                   <h3 class="me-top-code">我的邀请码是 <?=$this->member['recode']?></h3>
                   <?php if($this->member['level_type']==2){?>                
                   <?php }?>
                </div> 
            </div>
             <div class="me-top-money me-myor">
                    <ul class="clearfix">
                        <li class="on">
                            <a href="/order/order?type=0">
                                <i class="ico" id="all_order_number"><img src="/style/wei/images/me/or-1.png"><?php if($this->order['order_count']>0):?><em><?=$this->order['order_count'];?></em><?php endif;?></i>
                                <p>全部订单</p>
                            </a>
                        </li>
                        <li>
                            <a href="/order/order?type=1" >
                                <i class="ico" id="pending_payment_number"><img src="/style/wei/images/me/or-2.png"><?php if($this->order['not_pay_count']>0):?><em><?=$this->order['not_pay_count'];?></em><?php endif;?></i>
                                <p>待付款</p>
                            </a>
                        </li>
                        <li>
                            <a href="/order/order?type=2" >
                                <i class="ico" id="pending_shipment_number"><img src="/style/wei/images/me/or-3.png"><?php if($this->order['send_count']>0):?><em><?=$this->order['send_count'];?></em><?php endif;?></i>
                                <p>待发货</p>
                            </a>
                        </li>
                        <li>
                            <a href="/order/order?type=3" >
                                <i class="ico" id="the_receipt_number"><img src="/style/wei/images/me/or-4.png"><?php if($this->order['sended_count']>0):?><em><?=$this->order['sended_count'];?></em><?php endif;?></i>
                                <p>待收货</p>
                            </a>
                        </li>
                        <!-- <li>
                            <a href="/order/order?type=5" >
                                <i class="ico" id="after_sale"><img src="/style/wei/images/me/or-5.png"><?php if($this->order['rebackapply_count']>0):?><em><?=$this->order['rebackapply_count'];?></em><?php endif;?></i>
                                <p>退货退款</p>
                            </a>
                        </li> -->
                    </ul>
                </div>
        </div>
        <?php if($this->shipping > 0){?>
        <div class="me-laba" >
            <span class="me-laba-left"><img src="/style/wei/images/me/laba.png"/></span>
            <a href="/user/openshipping"><marquee class="me-laba-right" direction="left" scrollamount="3" scrolldelay="1">您的礼包已经发货，点击查看</marquee></a>
        </div>
        <?php }?>
        <div id="refresh_wrap">
            <ul>                    
                <!-- 这里是会员区分 -->
               <div style="width: 94%; margin: 0.2rem auto; background: #fff; overflow: hidden; border: 0.02rem solid#dfdfdf; border-radius: 0.15rem;">
                    <li style="float:left;width: 100%; height: auto;">    
                    <div style="width: 44%;height: auto;margin: 0.2rem 0.2rem;float: left;">
                        <a href="/wallet" ><img src="/style/wei/images/me/bn_walletnew.jpg" style="width: 100%; height: auto;float: left;" /></a>
                    </div>
                    <div style="width: 44%;height: auto;margin: 0.2rem 0.2rem;float: left;">
                        <a href="/user/invite?uid=<?=$this->member['uid'];?>"><img src="/style/wei/images/me/bn_qrcodenew.jpg" style="width: 100%; height: auto;float: left;" /></a>
                    </div>
                </li>
               </div>

                <!-- 签到 -->
                <?php
                if($this->config['sign_status']==1) {
                       $num = $this->sign['day_num'] ?$this->sign['day_num']+1: 1;
                    ?>
                    <div style="width: 94%; margin: 0.2rem auto; background: #fff; overflow: hidden; border: 0.02rem solid#dfdfdf; border-radius: 0.15rem;">
                        <li style="float:left;width: 100%; height: auto;display: flex;align-items: center;justify-content: space-between;">
                            <div style="width: 60%;height: auto;margin: 0.2rem 0.5rem;float: left;">
                                已连续签到<?= $this->sign['day_num']>0 ?$this->sign['day_num']:0; ?>天
                            </div>
                            <div style="width: 30%;height: auto;margin: 0.2rem 0.6rem;float: right;">
                                <?php
                                  if($this->sign['sign_status']==1){
                                      ?>
                                      <button>今天已签到</button>


                                  <?php  }else{?>

                                       <button onClick="sign()">签到得<?= $this->config['gold_money'][$num] >0 ?$this->config['gold_money'][$num]."金花":$this->config['coupon_money'][$num].'代金券'; ?></button>

                                <?php  }?>

                            </div>
                        </li>
                    </div>
                    <?php
                }
                ?>

                
                <a href="/user/invite?uid=<?=$this->member['uid'];?>">
                <li class="mui-table-view-cell">
                    <div class="user-list">
                        
                            <i class="iconfont"><img src="/style/lh/images/u3.png"/></i>
                            <span>我的推广码</span>
                            <img src="/style/lh/images/use11.png" class="user-img">
                        
                    </div>
                </li>   
                </a>     

                <a href="/user/recommend">
                <li class="mui-table-view-cell cell-bottom-gray">
                    <div class="user-list">                        
                            <i class="iconfont"><img src="/style/lh/images/u4.png"/></i>
                            <span>我的推荐<font style="padding: 0.05rem 0.15rem;background: #f2f2f2;color: #ea2d22;border-radius: 0.5rem;"><?=$this->usernum;?></font></span>
                            <img src="/style/lh/images/use11.png" class="user-img">
                    </div>
                </li>
                </a>

                <a href="/rcm?caid=171">
                    <li class="mui-table-view-cell">
                        <div class="user-list">
                            <i class="iconfont"><img src="/style/images/365.png"/></i>
                            <span>365会员权益</span>
                            <img src="/style/lh/images/use11.png" class="user-img">
                        </div>
                    </li>
                </a>

                <a href="/user/equity">
                    <li class="mui-table-view-cell cell-bottom-gray">
                        <div class="user-list">
                            <i class="iconfont"><img src="/style/images/chuangke.png"/></i>
                            <span>创客拓店权益</span>
                            <img src="/style/lh/images/use11.png" class="user-img">
                        </div>
                    </li>
                </a>

                <a href="/user/coupon">
                <li class="mui-table-view-cell">
                    <div class="user-list">                        
                            <i class="iconfont"><img src="/style/lh/images/u5.png"/></i>
                            <span>我的优惠券</span>
                            <img src="/style/lh/images/use11.png" class="user-img">                        
                    </div>
                </li>  
                </a>
                
                <a href="/user/collection">
                <li class="mui-table-view-cell">
                    <div class="user-list">                        
                            <i class="iconfont"><img src="/style/lh/images/u6.png"/></i>
                            <span>我的收藏</span>
                            <img src="/style/lh/images/use11.png" class="user-img">
                    </div>
                </li>
                </a>

                <a href="/user/footprint">
                <li class="mui-table-view-cell">
                    <div class="user-list">                        
                            <i class="iconfont"><img src="/style/lh/images/u13.png"/></i>
                            <span>我的足迹</span>
                            <img src="/style/lh/images/use11.png" class="user-img">
                    </div>
                </li>
                </a>



                <a href="/user/addrList">
                <li class="mui-table-view-cell cell-bottom-gray">
                    <div class="user-list">                        
                            <i class="iconfont"><img src="/style/lh/images/u7.png"/></i>
                            <span>地址管理</span>
                            <img src="/style/lh/images/use11.png" class="user-img">                    
                    </div>
                </li>
                </a>

                <a href="/user/account_manage">
                <li class="mui-table-view-cell ">
                    <div class="user-list">                        
                            <i class="iconfont"><img src="/style/lh/images/u8.png"/></i>
                            <span>帐户管理</span>
                            <img src="/style/lh/images/use11.png" class="user-img">                    
                    </div>
                </li>
                </a>

                <a href="/user/affiche">
                <li class="mui-table-view-cell">
                    <div class="user-list">                        
                            <i class="iconfont"><img src="/style/lh/images/u9.png"/></i>
                            <span>系统公告</span>
                            <img src="/style/lh/images/use11.png" class="user-img">                    
                    </div>
                </li> 
                </a>

                <a href="/user/transfer">
               <li class="mui-table-view-cell">
                    <div class="user-list">                        
                            <i class="iconfont"><img src="/style/lh/images/u10.png"/></i>
                            <span>转账管理</span>
                            <img src="/style/lh/images/use11.png" class="user-img">                    
                    </div>
                </li> 
                </a>
                
            </ul>
        </div>

    </div>
</div>

<!--底部导航-->
<div class="foot-menu">
    <ul class="clearfix">
        <a href="/"><li><i class="ico-7"></i><span>首页</span></li></a>
        <a href="/rcm"><li><i class="ico-1"></i><span>商城</span></li></a>
        <a href="/cart/cart"><li><i class="ico-5"></i><span>购物车</span></li> </a>  
        <a href="/college"><li><i class="ico-8"></i><span>商学院</span></li> </a>
        <a href="/user/index"><li class="on"><i class="ico-4"></i><span>我的</span></li> </a>    
    </ul>
</div>
</body>


<script>
    

    function sign(){
        $.post("/user/ajax", {
            "act": "save_sign",
            "mr": Math.random()
        }, function(data) {
            if (data.code == 200) {
                sweetAlert(data.msg);
                setTimeout(function() {
                    window.location.reload();
                }, 2100);
            } else {
                sweetAlert(data.msg);
            }
        },'json');
    }


</script>
</html>
